package productmanagementclient.publish;

import java.io.Serializable;
import java.util.Date;

public class Product implements Serializable {
	private static final long serialVersionUID = -2532718595121925389L;
	private long id;
	private String name;
	private Date importDate = new Date();
	private Double importCost;
	private Double exportCost;
	private Double shippingCost;
	private String productType;
	private Integer remainingItem;
	private String note = "";

	public Product(long id, String name, Double importCost, Double exportCost,
			Double shippingCost, String productType, Integer remainingItem,
			String note) {
		super();
		this.id = id;
		this.name = name;
		this.importCost = importCost;
		this.exportCost = exportCost;
		this.shippingCost = shippingCost;
		this.productType = productType;
		this.remainingItem = remainingItem;
		this.note = note;
	}


	public Product(String name, Double importCost, Double exportCost,
			Double shippingCost, String productType, Integer remainingItem,
			String note) {
		super();
		this.name = name;
		this.importCost = importCost;
		this.exportCost = exportCost;
		this.shippingCost = shippingCost;
		this.productType = productType;
		this.remainingItem = remainingItem;
		this.note = note;
	}

	public Product() {
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Double getImportCost() {
		return importCost;
	}

	public void setImportCost(Double importCost) {
		this.importCost = importCost;
	}

	public Double getExportCost() {
		return exportCost;
	}

	public void setExportCost(Double exportCost) {
		this.exportCost = exportCost;
	}

	public Double getShippingCost() {
		return shippingCost;
	}

	public void setShippingCost(Double shippingCost) {
		this.shippingCost = shippingCost;
	}

	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	public Integer getRemainingItem() {
		return remainingItem;
	}

	public void setRemainingItem(Integer remainingItem) {
		this.remainingItem = remainingItem;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getImportDate() {
		return importDate;
	}

	public void setImportDate(Date importDate) {
		this.importDate = importDate;
	}

	@Override
	public String toString() {
		return this.getName();
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getId() {
		return id;
	}
}
